using System.Data.Entity.Migrations;

namespace Pgpg.EntityFramework.Migrations
{
    public partial class Changed_Code_MaxLength_Of_OrganizationUnit : DbMigration
    {
        public override void Up()
        {
            DropIndex("dbo.AbpOrganizationUnits", new[] {"TenantId", "Code"});
            AlterColumn("dbo.AbpOrganizationUnits", "Code", c => c.String(nullable: false, maxLength: 95));
            CreateIndex("dbo.AbpOrganizationUnits", new[] {"TenantId", "Code"});
        }

        public override void Down()
        {
            DropIndex("dbo.AbpOrganizationUnits", new[] {"TenantId", "Code"});
            AlterColumn("dbo.AbpOrganizationUnits", "Code", c => c.String(nullable: false, maxLength: 128));
            CreateIndex("dbo.AbpOrganizationUnits", new[] {"TenantId", "Code"});
        }
    }
}
